﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DBSCAN
{
    public partial class Test2ParaDlg : Form
    {
        private double N;
        private int level;
        public Test2ParaDlg(double a,int b)
        {
            InitializeComponent();
            if (a != 35 || b != 5)
            {
                this.txtN.Text = a.ToString();
                this.txtLevel.Text =b.ToString();
            }
            else
            {
                this.txtN.Text = "500";
                this.txtLevel.Text = "5";
            }
        }


        internal double GetN()
        {
            //int N = this.txtN.Text.ToString();
            double.TryParse(this.txtN.Text.ToString(), out N);
            return N;
            //throw new NotImplementedException();
        }

        internal int GetLevel()
        {
            int.TryParse(this.txtLevel.Text.ToString(), out level);
            return level;
            //throw new NotImplementedException();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {

        }
    }
}
